package com.hxzy.mapper;


import com.hxzy.entity.Type;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TypeMapper {
    //查询类型下拉列表
    @Select("select * from type")
    List<Type> selectTypeList();

    //根据id查询name
    @Select("select level from type where id = #{id}")
    String selectById(Long id);
}
